Optimal. Leaf size=23 \[ -\frac{\tanh ^{-1}\left (\frac{\cos (c+d x)}{\sqrt{2}}\right )}{\sqrt{2} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0386754, antiderivative size = 23, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {4397, 3186, 206} \[ -\frac{\tanh ^{-1}\left (\frac{\cos (c+d x)}{\sqrt{2}}\right )}{\sqrt{2} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4397
Rule 3186
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{\csc (c+d x)+\sin (c+d x)} \, dx &=\int \frac{\sin (c+d x)}{1+\sin ^2(c+d x)} \, dx\\ &=-\frac{\operatorname{Subst}\left (\int \frac{1}{2-x^2} \, dx,x,\cos (c+d x)\right )}{d}\\ &=-\frac{\tanh ^{-1}\left (\frac{\cos (c+d x)}{\sqrt{2}}\right )}{\sqrt{2} d}\\ \end{align*}
Mathematica [C] time = 0.184958, size = 61, normalized size = 2.65 \[ -\frac{\tanh ^{-1}\left (\frac{\cos (c)-(\sin (c)-i) \tan \left (\frac{d x}{2}\right )}{\sqrt{2}}\right )+\tanh ^{-1}\left (\frac{\cos (c)-(\sin (c)+i) \tan \left (\frac{d x}{2}\right )}{\sqrt{2}}\right )}{\sqrt{2} d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.077, size = 21, normalized size = 0.9 \begin{align*} -{\frac{\sqrt{2}}{2\,d}{\it Artanh} \left ({\frac{\cos \left ( dx+c \right ) \sqrt{2}}{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.66338, size = 238, normalized size = 10.35 \begin{align*} \frac{\sqrt{2} \log \left (-\frac{2 \,{\left (\sqrt{2} + 1\right )} \cos \left (d x + c\right ) - \cos \left (d x + c\right )^{2} - \sin \left (d x + c\right )^{2} - 2 \, \sqrt{2} - 3}{2 \,{\left (\sqrt{2} - 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} - 2 \, \sqrt{2} + 3}\right ) + \sqrt{2} \log \left (-\frac{2 \,{\left (\sqrt{2} - 1\right )} \cos \left (d x + c\right ) - \cos \left (d x + c\right )^{2} - \sin \left (d x + c\right )^{2} + 2 \, \sqrt{2} - 3}{2 \,{\left (\sqrt{2} + 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} + 2 \, \sqrt{2} + 3}\right )}{8 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.485088, size = 119, normalized size = 5.17 \begin{align*} \frac{\sqrt{2} \log \left (-\frac{\cos \left (d x + c\right )^{2} - 2 \, \sqrt{2} \cos \left (d x + c\right ) + 2}{\cos \left (d x + c\right )^{2} - 2}\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sin{\left (c + d x \right )} + \csc{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.24742, size = 92, normalized size = 4. \begin{align*} \frac{\sqrt{2} \log \left (\frac{{\left | -4 \, \sqrt{2} - \frac{2 \,{\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} + 6 \right |}}{{\left | 4 \, \sqrt{2} - \frac{2 \,{\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} + 6 \right |}}\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]